package com.business.api.user.from;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.seed.core.pojo.from.SeedBaseFrom;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author gchiaway
 * 日期: 2020-06-11
 * 时间: 15:44
 */
@Getter
@Setter
@ToString
public class UpdateUserInfoFrom extends SeedBaseFrom {
    /**
     * 主键id
     */
    @ApiModelProperty(hidden = true)
    private String id;
    /**
     * 真实姓名
     */
    @ApiModelProperty(value = "真实姓名", example = "1")
    private String realname;
    /**
     * 性别（1：男 2：女）
     */
    @ApiModelProperty(value = "性别（1：男 2：女）", example = "1")
    private Integer sex;
    /**
     * 生日
     */
    @ApiModelProperty(value = "生日", example = "1")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    /**
     * 电子邮件
     */
    @ApiModelProperty(value = "电子邮件")
    private String email;
    /**
     * 电话
     */
    @ApiModelProperty(value = "生日")
    private String phone;
    /**
     * 头像
     */
    @ApiModelProperty(value = "头像", example = "1")
    private String avatar;
}
